/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Forms;

import BusinessEntity.BE_Personal;
import BusinessEntity.BE_Requerimiento;
import BusinessEntity.BE_TablaMaestra;
import BusinessEntity.BE_Usuario;
import BusinessLogic.BL_Requerimiento;
import BusinessLogic.BL_TablaMaestra;
import Comun.Constantes;
import Comun.Funciones_Comunes;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JInternalFrame;
import javax.swing.ListSelectionModel;

/**
 *
 * @author richard.saldana
 */
public class Frm_Requerimiento extends javax.swing.JInternalFrame {

    private JInternalFrame frmPadre;
    //Personal
private BE_Personal objBEPersonal;
    //usuario
    private BE_Usuario objBEUsuario;
    //combo Prioridad
    private ArrayList<BE_TablaMaestra> aobjBE_comboPrioridad;
     //Opcion
    private int intOpcion;
    //Requerimiento Seleccionado
    private BE_Requerimiento objBERequerimientoSeleccionado;
    /**
     * Creates new form Frm_Requerimiento
     */
    public Frm_Requerimiento(JInternalFrame frmVentana, int intCodigoRequerimiento, int intOpcion) throws InstantiationException, IllegalAccessException, SQLException {
        initComponents();
        setDefaultCloseOperation(0);
        this.frmPadre = frmVentana;
        this.objBEPersonal = ((Frm_BandejaTarea) this.frmPadre).getObjBEPersonal();
        this.objBEUsuario = ((Frm_BandejaTarea) this.frmPadre).getObjBEUsuario();
        this.intOpcion = intOpcion;
        inicializar(intCodigoRequerimiento);
        
    }

     private void inicializar(int intCodigoRequerimiento) throws InstantiationException, IllegalAccessException, SQLException{
        
         
         if(this.intOpcion == Constantes.OpcionNuevo){
            this.txtResponsable.setText(this.objBEUsuario.getStrLogin());
         }
         
        //combo prioridades
        setAobjBE_comboPrioridad(BL_TablaMaestra.obtenerInstancia().obtenerPrioridades());
        if(this.aobjBE_comboPrioridad != null){
            cmbPrioridad.removeAllItems();
            this.cmbPrioridad.addItem("<Seleccionar>");
            for (int i = 0; i < aobjBE_comboPrioridad.size(); i++) {
                this.cmbPrioridad.addItem(aobjBE_comboPrioridad.get(i));
                
            }
        }
        
        if(this.intOpcion == Constantes.OpcionModificar){
            this.setObjBERequerimientoSeleccionado(BL_Requerimiento.obtenerInstancia().obtenerRequerimientoID(intCodigoRequerimiento));
            this.txtNombre.setText(getObjBERequerimientoSeleccionado().getStrNombre());
            this.jtxDescripcion.setText(getObjBERequerimientoSeleccionado().getStrDescripcion());
            this.txtResponsable.setText(Integer.toString(getObjBERequerimientoSeleccionado().getIntUsuarioAsignado()));
            BE_TablaMaestra objBE_Prioridad = new BE_TablaMaestra();
            objBE_Prioridad.setIdSubTipo(this.objBERequerimientoSeleccionado.getIntPrioridad());
            this.cmbPrioridad.setSelectedItem(objBE_Prioridad);
            
        }
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jpRequerimientos = new javax.swing.JPanel();
        lblNombre = new javax.swing.JLabel();
        txtNombre = new javax.swing.JTextField();
        lblDescripcion = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtxDescripcion = new javax.swing.JTextArea();
        lblPrioridad = new javax.swing.JLabel();
        cmbPrioridad = new javax.swing.JComboBox();
        jpDocumentos = new javax.swing.JPanel();
        lblAnalisisDetallado = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        lblDocImpacto = new javax.swing.JLabel();
        jTextField4 = new javax.swing.JTextField();
        btnExaminarAD = new javax.swing.JButton();
        btnExaminarDI = new javax.swing.JButton();
        lblResponsable = new javax.swing.JLabel();
        txtResponsable = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        btnAceptar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();

        jpRequerimientos.setBorder(javax.swing.BorderFactory.createTitledBorder("Requerimientos"));

        lblNombre.setText("Nombre:");

        lblDescripcion.setText("Descripción:");

        jtxDescripcion.setColumns(20);
        jtxDescripcion.setRows(5);
        jScrollPane1.setViewportView(jtxDescripcion);

        lblPrioridad.setText("Prioridad:");

        cmbPrioridad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbPrioridadActionPerformed(evt);
            }
        });

        jpDocumentos.setBorder(javax.swing.BorderFactory.createTitledBorder("Documentos"));

        lblAnalisisDetallado.setText("Análisis Detallado:");

        jTextField3.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));

        lblDocImpacto.setText("Documento Impacto:");

        btnExaminarAD.setText("Examinar");
        btnExaminarAD.setToolTipText("Examinar");

        btnExaminarDI.setText("Examinar");
        btnExaminarDI.setToolTipText("Examinar");

        javax.swing.GroupLayout jpDocumentosLayout = new javax.swing.GroupLayout(jpDocumentos);
        jpDocumentos.setLayout(jpDocumentosLayout);
        jpDocumentosLayout.setHorizontalGroup(
            jpDocumentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpDocumentosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpDocumentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jpDocumentosLayout.createSequentialGroup()
                        .addComponent(lblDocImpacto)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnExaminarDI, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jpDocumentosLayout.createSequentialGroup()
                        .addComponent(lblAnalisisDetallado)
                        .addGap(18, 18, 18)
                        .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnExaminarAD, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jpDocumentosLayout.setVerticalGroup(
            jpDocumentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpDocumentosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpDocumentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblAnalisisDetallado)
                    .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExaminarAD))
                .addGap(14, 14, 14)
                .addGroup(jpDocumentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDocImpacto)
                    .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExaminarDI))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        lblResponsable.setText("Responsable:");

        txtResponsable.setEnabled(false);

        javax.swing.GroupLayout jpRequerimientosLayout = new javax.swing.GroupLayout(jpRequerimientos);
        jpRequerimientos.setLayout(jpRequerimientosLayout);
        jpRequerimientosLayout.setHorizontalGroup(
            jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpRequerimientosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jpRequerimientosLayout.createSequentialGroup()
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblResponsable)
                            .addComponent(lblNombre))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtNombre)
                            .addComponent(txtResponsable)))
                    .addGroup(jpRequerimientosLayout.createSequentialGroup()
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblDescripcion)
                            .addComponent(lblPrioridad))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 206, Short.MAX_VALUE)
                            .addComponent(cmbPrioridad, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addGap(18, 18, 18)
                .addComponent(jpDocumentos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jpRequerimientosLayout.setVerticalGroup(
            jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jpRequerimientosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jpDocumentos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jpRequerimientosLayout.createSequentialGroup()
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblResponsable)
                            .addComponent(txtResponsable, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblNombre)
                            .addComponent(txtNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblDescripcion)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jpRequerimientosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblPrioridad)
                            .addComponent(cmbPrioridad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );

        btnAceptar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/guardar32.png"))); // NOI18N
        btnAceptar.setToolTipText("Aceptar");
        btnAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAceptarActionPerformed(evt);
            }
        });

        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/eliminar32.png"))); // NOI18N
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(btnAceptar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnCancelar)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnAceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jpRequerimientos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jpRequerimientos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
        ((Frm_BandejaTarea) (this.frmPadre)).setVisible(true);
        ((Frm_BandejaTarea) (this.frmPadre)).tblRequerimientos.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        try {
            ((Frm_BandejaTarea) (this.frmPadre)).cargarListaRequerimientos(this.objBEPersonal);
        } catch (InstantiationException ex) {
            Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
        }
        this.dispose();
        // TODO add your handling code here:
    }//GEN-LAST:event_btnCancelarActionPerformed

    private void cmbPrioridadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmbPrioridadActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cmbPrioridadActionPerformed

    private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAceptarActionPerformed

        boolean bolTamahoNombre = (Funciones_Comunes.validarTextField(txtNombre.getText().trim(), "mayor", 0, lblNombre.getText()));
        boolean bolTamahoDescripcion = (Funciones_Comunes.validarTextField(jtxDescripcion.getText().trim(), "mayor", 0, lblDescripcion.getText()));
        boolean bolComboPrioridad = Funciones_Comunes.validarCombo(cmbPrioridad.getSelectedItem().toString(), "<Seleccionar>", lblPrioridad.getText());
  
        
        if(bolTamahoNombre && bolTamahoDescripcion && bolComboPrioridad){
            BE_TablaMaestra  objPrioridad = (BE_TablaMaestra)this.cmbPrioridad.getSelectedItem();
            BE_Requerimiento objRequerimiento = null;
            if(this.intOpcion == Constantes.OpcionNuevo){
                 objRequerimiento = BL_Requerimiento.obtenerInstancia().crearObjetoRequerimiento(txtNombre.getText().trim(),jtxDescripcion.getText().trim(), objPrioridad, getObjBEUsuario(), 0, 0);
            }else{
                 objRequerimiento = BL_Requerimiento.obtenerInstancia().crearObjetoRequerimiento(txtNombre.getText().trim(),jtxDescripcion.getText().trim(), objPrioridad, getObjBEUsuario(), 0, this.objBERequerimientoSeleccionado.getIdRequerimiento());
            }

          if(this.intOpcion == Constantes.OpcionNuevo){
             try {
                if (Comun.GUI.msjPreguntaSiNo("¿Seguro que desea registrar su Requerimiento?")) {
                       BL_Requerimiento.obtenerInstancia().registrarRequerimiento(objRequerimiento);
                       Comun.GUI.msjAlerta("Se Registro el Requerimiento Correctamente");                 
                }
                
                
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                }

                ((Frm_BandejaTarea) (this.frmPadre)).setVisible(true); 

               try {
                    ((Frm_BandejaTarea) (this.frmPadre)).cargarListaRequerimientos(this.objBEPersonal);
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                }
                this.dispose(); 
          }
          if(this.intOpcion == Constantes.OpcionModificar){
                try {
                    if (Comun.GUI.msjPreguntaSiNo("¿Seguro que desea modificar su Requerimiento?")) {
                           BL_Requerimiento.obtenerInstancia().modificarRequerimiento(objRequerimiento);
                           Comun.GUI.msjAlerta("Se modifico el Requerimiento Correctamente");                 
                }
                
                
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                }
                
                 ((Frm_BandejaTarea) (this.frmPadre)).setVisible(true); 

               try {
                    ((Frm_BandejaTarea) (this.frmPadre)).cargarListaRequerimientos(this.objBEPersonal);
                } catch (InstantiationException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Frm_Requerimiento.class.getName()).log(Level.SEVERE, null, ex);
                }
                this.dispose(); 
                
          }
          
        }
  
    }//GEN-LAST:event_btnAceptarActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAceptar;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnExaminarAD;
    private javax.swing.JButton btnExaminarDI;
    private javax.swing.JComboBox cmbPrioridad;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JPanel jpDocumentos;
    private javax.swing.JPanel jpRequerimientos;
    private javax.swing.JTextArea jtxDescripcion;
    private javax.swing.JLabel lblAnalisisDetallado;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblDocImpacto;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblPrioridad;
    private javax.swing.JLabel lblResponsable;
    private javax.swing.JTextField txtNombre;
    private javax.swing.JTextField txtResponsable;
    // End of variables declaration//GEN-END:variables

/**
     * @return the objBEUsuario
     */
    public BE_Usuario getObjBEUsuario() {
        return objBEUsuario;
    }

    /**
     * @param objBEUsuario the objBEUsuario to set
     */
    public void setObjBEUsuario(BE_Usuario objBEUsuario) {
        this.objBEUsuario = objBEUsuario;
    }

    /**
     * @return the aobjBE_comboPrioridad
     */
    public ArrayList<BE_TablaMaestra> getAobjBE_comboPrioridad() {
        return aobjBE_comboPrioridad;
    }

    /**
     * @param aobjBE_comboPrioridad the aobjBE_comboPrioridad to set
     */
    public void setAobjBE_comboPrioridad(ArrayList<BE_TablaMaestra> aobjBE_comboPrioridad) {
        this.aobjBE_comboPrioridad = aobjBE_comboPrioridad;
    }

    /**
     * @return the objBEPersonal
     */
    public BE_Personal getObjBEPersonal() {
        return objBEPersonal;
    }

    /**
     * @param objBEPersonal the objBEPersonal to set
     */
    public void setObjBEPersonal(BE_Personal objBEPersonal) {
        this.objBEPersonal = objBEPersonal;
    }

    /**
     * @return the intOpcion
     */
    public int getIntOpcion() {
        return intOpcion;
    }

    /**
     * @param intOpcion the intOpcion to set
     */
    public void setIntOpcion(int intOpcion) {
        this.intOpcion = intOpcion;
    }

    /**
     * @return the objBERequerimientoSeleccionado
     */
    public BE_Requerimiento getObjBERequerimientoSeleccionado() {
        return objBERequerimientoSeleccionado;
    }

    /**
     * @param objBERequerimientoSeleccionado the objBERequerimientoSeleccionado to set
     */
    public void setObjBERequerimientoSeleccionado(BE_Requerimiento objBERequerimientoSeleccionado) {
        this.objBERequerimientoSeleccionado = objBERequerimientoSeleccionado;
    }
}
